package cn.edu.ujn.project.supermarket.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;

import cn.edu.ujn.project.common.annotation.Excel;
import cn.edu.ujn.project.common.core.domain.BaseEntity;

/**
 * 进货对象 inport_goods
 * 
 * @author zhaomh
 * @date 2023-11-14
 */
public class InportGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 进货单号 */
    private String inportId;

    /** 商品条形码 */
    private String barCode;

    /** 进货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 进货的数量 */
    @Excel(name = "进货的数量")
    private Integer quantity;

    /** 供货商 */
    @Excel(name = "供货商")
    private String supplierCode;

    public InportGoods() {
    }

    public InportGoods(InportGoods inportGoods) {
        this.inportId = inportGoods.inportId;
        this.barCode = inportGoods.barCode;
        this.quantity = inportGoods.quantity;
        this.supplierCode = inportGoods.supplierCode;
        this.date = inportGoods.date;
    }

    public void setInportId(String inportId) 
    {
        this.inportId = inportId;
    }

    public String getInportId() 
    {
        return inportId;
    }
    public void setBarCode(String barCode) 
    {
        this.barCode = barCode;
    }

    public String getBarCode() 
    {
        return barCode;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setQuantity(Integer quantity) 
    {
        this.quantity = quantity;
    }

    public Integer getQuantity() 
    {
        return quantity;
    }
    public void setSupplierCode(String supplierCode) 
    {
        this.supplierCode = supplierCode;
    }

    public String getSupplierCode() 
    {
        return supplierCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inportId", getInportId())
            .append("barCode", getBarCode())
            .append("date", getDate())
            .append("quantity", getQuantity())
            .append("supplierCode", getSupplierCode())
            .toString();
    }
}
